# -*- coding: utf-8 -*-
# @author okumura@laurus.co.jp

from google.appengine.ext import db
from gaeo.model import BaseModel, SearchableBaseModel

class Pigeon(BaseModel):
    importances = [
        ('Highest', '最高'),
        ('High', '高'),
        ('Normal', '標準'),
        ('Low', '低'),
        ('Lowest', '最低')
    ]
    subject = db.StringProperty(multiline=False)
    body = db.TextProperty()
    from_user = db.UserProperty()
    send_info = db.BooleanProperty()
    read_info = db.BooleanProperty()
    importance = db.CategoryProperty()
    create_from = db.SelfReferenceProperty()
    status = db.StringProperty(choices=['Sent','Draft'])
    post_at = db.DateTimeProperty(auto_now_add=True)
